import { defineStore } from 'pinia'

export const useDateStore = defineStore('date', {
    state: () => ({
        currentYear: new Date().getFullYear(),
        currentMonth: new Date().getMonth() + 1
    }),

    actions: {
        setDate(year, month) {
            this.currentYear = year
            this.currentMonth = month
        }
    }
})